let that
export default {
    onLoad() {
        that = this
    },
    methods: {
        shareWithSystem() {
            uni.shareWithSystem({
                summary: '分享title',
                href: 'https://www.baidu.com'
            })
        },
        shareSystem() {
            plus.share.sendWithSystem({content: '分享内容', href: 'https://www.dcloud.io/'}, function () {
                console.log('分享成功');
            }, function (e) {
                console.log('分享失败：' + JSON.stringify(e));
            });
        },
        shareApi2() {
            uni.share({
                provider: "weixin",
                scene: "WXSceneSession",
                type: 0,
                href: "http://uniapp.dcloud.io/",
                title: "uni-app分享",
                summary: "我正在使用HBuilderX开发uni-app，赶紧跟我一起来体验！",
                imageUrl: "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/uni@2x.png",
                success: function (res) {
                    console.log("success:" + JSON.stringify(res));
                }
            });
        }
    }
}
